package com.cheng.student.service.interfaces;

import com.cheng.student.beans.Student;
import com.cheng.student.beans.StudentFull;
import com.cheng.student.dao.InsertFailedException;

import java.io.InputStream;
import java.util.List;

public interface StudentService
{
    public List<StudentFull> getStudentsByExcel(InputStream excel, int numberOfRows);

    //姓名和考生号
    public Student studentLogin(String name, String number);

    //添加学生，接收一个加载了excel的流
    public void insertStudentsByExcel(InputStream inputStream, int numberOfRows)
            throws InsertFailedException;

    //获取所有studentFull的json字符串
    public String getJsonOfStudentFull(int start,int end);
}
